# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sshpass
pkgver=1.10
pkgrel=0
pkgdesc="Non-interactive SSH authentication utility"
url="https://sourceforge.net/projects/sshpass/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/sshpass/sshpass-$pkgver.tar.gz"
options="!check"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d0fbceb956baee79803fec8bd9a2e0d1e342cbc90fb8bb4baa5a01914f870393f43bd07b62aa1da208318b4971005b9bbccf0e926c590124de11a272169db81d  sshpass-1.10.tar.gz
"
